home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / kernel / port / align.c next >
C/C++ Source or Header  |  1995-04-10  |  446b  |  33 lines

  1.  
  2.  
  3. #include <stdio.h>
  4.  
  5. typedef    struct    {
  6.     void    *cls;
  7.     unsigned short  tag;
  8. }    Type;
  9.  
  10. typedef    struct    {
  11.     void    *a;
  12.     unsigned short  b;
  13.     void    *c;
  14. }    Type2;
  15.  
  16.  
  17. main()
  18. {
  19.     Type    v1,  v2;
  20.     char    c;
  21.     Type    v3;
  22.     Type2    v4;
  23.  
  24.     printf("v1 = %x\n", &v1);
  25.     printf("v2 = %x\n", &v2);
  26.     printf("v3 = %x\n", &v3,  c);
  27.     printf("v4 = %x\n", &v4);
  28.     printf("a = %x\n", &v4.a);
  29.     printf("b = %x\n", &v4.b);
  30.     printf("c = %x\n", &v4.c);
  31.     return 0;
  32. }
  33.